import json
books = [
	{
		'title': '钢铁是怎样练成的',
		'price': 9.8
	},
	{
		'title': '红楼梦',
		'price': 9.9
	}
]
with open('a.JSON','w') as fp:
	json.dump(books,fp)
